﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace lcps.Web
{
    public partial class Top : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["login"]!= null)
                {
                    DataSet ds = Session["login"] as DataSet;
                    if (ds.Tables[0].Rows.Count > 0)
                    {
                        this.lbl_warn.Text = "欢迎您，" + ds.Tables[0].Rows[0]["usertruename"];
                    }
                    
                }
            }
        }

        protected void lbn_cancel_Click(object sender, EventArgs e)
        {
            Session.Abandon();
            Maticsoft.Common.MessageBox.ResponseScript(this, "top.location.href='Default.aspx'");
        }
    }
}